# from moviepy.editor import VideoFileClip
#
# # 输入视频文件路径
# input_video = 'images/video/tj.mp4'
# # 输出 GIF 文件路径
# output_gif = 'images/video/tj.gif'
#
# # 加载视频文件
# video_clip = VideoFileClip(input_video)
#
# # 将视频转换为 GIF，并进行压缩
# video_clip.write_gif(output_gif, fps=4, program='ffmpeg', opt='optimizeplus', fuzz=60)
#
# # 关闭视频文件
# video_clip.close()
#
#
# views.py